package cn.com.qtgl.apis.notification.model.entity;

import cn.melonlib.cores.commons.model.entity.TenantRecordEntity;
import cn.melonlib.cores.model.anno.ModelComment;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@EqualsAndHashCode(callSuper = true)
@ModelComment("消息提醒渠道控制")
@Entity(name = "NotificationChannel")
@Table(name = "notification_channel")
public class NotificationChannel extends TenantRecordEntity {

    @ModelComment("消息渠道编号")
    private String code;

    @ModelComment("消息渠道名称")
    private String name;

    @ModelComment("消息渠道类型")
    private String type;

    @ModelComment("是否启用")
    private Boolean enable;

    @ModelComment("消息发送配置")
    private String config;

    @ModelComment("重试时间")
    private Integer retryHours;

    @ModelComment("最大重试时间")
    private Integer validHours;

    @ModelComment("最大重试次数")
    private Integer retryCount;

    @ModelComment("本系统选择使用")
    private Boolean active=false;
}
